<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="telephone=no" name="format-detection" />
		<title>{$data['title']} - 开奖结果 - 彩票系统</title>
		<base href="{URL}" />
		<link href="static/css/result.credit.css" rel="stylesheet" />
		<link href="static/css/artDialog.css" rel="stylesheet" />
		<script src="static/js/jquery.min.js"></script>
		<script src="static/js/jquery.artDialog.min.js"></script>
		<script src="static/js/knockout-3.4.0.js"></script>
		<script src="static/js/common.js"></script>
		<style>
			td{text-align:center}
			a.btn{display:inline-block;padding:3px}
			a.btn-blue{background:#395eaa;color:#fff !important}
			.x038-a{margin-left:30px;padding:4px 21px;line-height:27px;color:white !important;background:#eb5454}
		</style>
		<script>
			/// 数组去重
			Array.prototype.unique = function () {
				if (this.length === 0) return [];
				this.sort();
				var re = [this[0]];
				for (var i = 1; i < this.length; i++) {
					if (Number(this[i]) !== Number(re[re.length - 1])) {
						re.push(this[i]);
					}
				}
				return re;
			}
			var BJPKSGYHZ11 = '1' - 0;
			var GameCode = '{$data["ptid"]}';
		</script>    
	</head>
	
	<body>
		<div class="report-top" style="display: none;">
			<dl class="gf">
				<dt><i class="luck-icon"></i></dt>
				<dd class="clear">
					{loop $lottery as $key => $val}
					<a{if $data['id'] == $val['id']} class="on"{/if} href="{U('/lottery/log',['id'=>$val['id']])}">{$val['title']}</a>
					{/loop}
				</dd>
			</dl>
			
			<dl class="xy">
				<dt><i class="luck-icon"></i></dt>
				<dd class="clear">
					{loop $lottery as $key => $val}
					<a{if $data['id'] == $val['id']} class="on"{/if} href="{U('/lottery/log',['id'=>$val['id']])}">{$val['title']}</a>
					{/loop}
				</dd>
			</dl>
		</div>
		
		<div class="report" id="ResultMain">
			<div id="thead" class="query clear">
				<form data-bind="submit:search">
					<div class="fl">
						<span>游戏：</span>
						<select data-bind="event:{change:changeGame}">
							{loop $lottery as $key => $val}
							<option{if $data['id'] == $val['id']} selected="selected"{/if} value="{$val['id']}">{$val['title']}[{_e $val["credit"] ? "信" : "官"}]</option>
							{/loop}
						</select>
						<span>时间：</span>
						<input id="dtrange" type="text" style="width:160px;" />
						<span>期数：</span>
						<input type="text" autocomplete="off" data-bind="textInput:periodNum" />
						<input type="submit" value="查询" class="btn" />
						<a href="javascript:void(0)" data-bind="click:lotteryDate">搅珠日期表</a>
					</div>
					<div class="ih-time">
						<input id="btnRelaod" type="button" class="relaod-btn" value="刷新" data-bind="click:search">
						<b data-bind="text:secondTxt">-</b>
					</div>
					<select data-bind="value:second,event:{change:secondChange}" class="time-select">
						<option value="-" selected="selected">不刷新</option>
						<option value="10">10</option>
						<option value="30">30</option>
						<option value="60">60</option>
						<option value="120">120</option>
						<option value="500">500</option>
					</select>
				</form>
			</div>